package com.ddzn.example.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author biaoy
 * @since 2024/12/29
 */
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/map")
    public Object get() {
        Map<String, Object> map = new HashMap<>();
        map.put("name", "ddzn");
        map.put("timestamp", System.currentTimeMillis());
        log.info(map.toString());
        return map;
    }
}
